import http from '../http'

const api = '/erp/bills'

export function get(params) {
  return http.get(api, {
    params
  })
}

export function latest(params) {
  return http.get(api + '/latest', { params })
}

export function post(data) {
  return http.post(api, data)
}